<?php
namespace Tbf\Component\Arrays\Tests;
use Tbf\Bundle\TestBundle\TestSuite\TbfTestCase;
use Tbf\Component\Arrays\BitBooleanArray;

class BitBooleanArrayTest extends TbfTestCase{
    function test1(){
        $obj = new BitBooleanArray(10);
        $this->assertEquals(false,$obj->get(5));
        $obj->set(5,true);
        $this->assertEquals(true,$obj->get(5));
        $obj->set(5,false);
        $this->assertEquals(false,$obj->get(5));
        $obj->set(1,true);
        $this->assertEquals(true,$obj->get(1));
        $obj->set(7,true);
        $this->assertEquals(true,$obj->get(7));
        $obj->set(8,true);
        $this->assertEquals(true,$obj->get(8));
    }
}